<div id="navbar" class="navbar navbar-default">
	<script type="text/javascript">
		try{ace.settings.check('navbar' , 'fixed')}catch(e){}
	</script>

	<div class="navbar-container" id="navbar-container">
		<button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler">
			<span class="sr-only">Toggle sidebar</span> <span class="icon-bar"></span>
			<span class="icon-bar"></span> <span class="icon-bar"></span>
		</button>

		<div class="navbar-header pull-left">
			<a href="${ctx}/admin/index" class="navbar-brand"> <small> <i
					class="fa fa-leaf"></i> FinalCMS Admin
			</small>
			</a>
		</div>

		<div class="navbar-buttons navbar-header pull-right"
			role="navigation">
			<ul class="nav ace-nav">

				<li class="purple">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<i class="ace-icon fa fa-bell icon-animated-bell"></i> <span class="badge badge-important">8</span>
					</a>
					<ul class="dropdown-menu-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
						<li class="dropdown-header"><i
							class="ace-icon fa fa-exclamation-triangle"></i> 8 Notifications
						</li>

						<li><a href="#">
								<div class="clearfix">
									<span class="pull-left"> <i
										class="btn btn-xs no-hover btn-pink fa fa-comment"></i> New
										Comments
									</span> <span class="pull-right badge badge-info">+12</span>
								</div>
						</a></li>

						<li><a href="#"> <i
								class="btn btn-xs btn-primary fa fa-user"></i> Bob just signed
								up as an editor ...
						</a></li>

						<li><a href="#">
								<div class="clearfix">
									<span class="pull-left"> <i
										class="btn btn-xs no-hover btn-success fa fa-shopping-cart"></i>
										New Orders
									</span> <span class="pull-right badge badge-success">+8</span>
								</div>
						</a></li>

						<li><a href="#">
								<div class="clearfix">
									<span class="pull-left"> <i
										class="btn btn-xs no-hover btn-info fa fa-twitter"></i>
										Followers
									</span> <span class="pull-right badge badge-info">+11</span>
								</div>
						</a></li>

						<li class="dropdown-footer"><a href="#"> See all
								notifications <i class="ace-icon fa fa-arrow-right"></i>
						</a></li>
					</ul></li>

				<!-- #section:basics/navbar.user_menu -->
				<li class="light-blue"><a data-toggle="dropdown" href="#"
					class="dropdown-toggle"> <img class="nav-user-photo"
						src="${ctx}/avatars/user.jpg" alt="Jason's Photo" /> <span
						class="user-info"> <small>Welcome,</small> Jason
					</span> <i class="ace-icon fa fa-caret-down"></i>
				</a>

					<ul
						class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
						<li><a href="#"> <i class="ace-icon fa fa-cog"></i>
								Settings
						</a></li>

						<li><a href="profile.html"> <i
								class="ace-icon fa fa-user"></i> Profile
						</a></li>

						<li class="divider"></li>

						<li><a href="/admin/logout"> <i class="ace-icon fa fa-power-off"></i>
								Logout
						</a></li>
					</ul></li>

				<!-- /section:basics/navbar.user_menu -->
			</ul>
		</div>
		<!-- /section:basics/navbar.dropdown -->
	</div>
	<!-- /.navbar-container -->
</div>

<!-- /section:basics/navbar.layout -->
<div class="main-container" id="main-container">
	<script type="text/javascript">
		try{ace.settings.check('main-container' , 'fixed')}catch(e){}
	</script>
<div id="sidebar" class="sidebar responsive">
	<script type="text/javascript">
		try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
	</script>

	<div class="sidebar-shortcuts" id="sidebar-shortcuts">
		<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
			<button class="btn btn-success">
				<i class="ace-icon fa fa-signal"></i>
			</button>
			<button class="btn btn-info">
				<i class="ace-icon fa fa-pencil"></i>
			</button>
			<button class="btn btn-warning">
				<i class="ace-icon fa fa-users"></i>
			</button>
			<button class="btn btn-danger">
				<i class="ace-icon fa fa-cogs"></i>
			</button>
		</div>

		<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
			<span class="btn btn-success"></span> <span class="btn btn-info"></span>
			<span class="btn btn-warning"></span> <span class="btn btn-danger"></span>
		</div>
	</div>

	<ul class="nav nav-list">
		<li <?if(current=='dashboard'){?>class="active"<?}?> id="dashboard">
			<a href="${ctx}/admin/index">
				<i class="menu-icon fa fa-tachometer"></i><span class="menu-text"> 仪表盘 </span>
			</a>
			<b class="arrow"></b>
		</li>

		<li <?if(current=='list_article' || current=='post_article'){?>class="active open hsub"<?}?>>
			<a href="#" class="dropdown-toggle">
				<i class="menu-icon fa fa-desktop"></i><span class="menu-text">	内容管理 </span> 
				<b class="arrow fa fa-angle-down"></b>
			</a>
			<b class="arrow"></b>
			<ul class="submenu">
				<li <?if(current=='list_article' || current=='post_article'){?>class="active open hsub"<?}?>>
					<a href="#" class="dropdown-toggle"> 
						<i class="menu-icon fa fa-caret-right"></i> 文章 <b class="arrow fa fa-angle-down"></b>
					</a>
					<b class="arrow"></b>
					<ul class="submenu">
						<li class=""><a href="/admin/content/list"> 
							<i class="menu-icon fa fa-caret-right"></i> 所有文章 </a> <b class="arrow"></b></li>

						<li <?if(current=='post_article'){?>class="active"<?}?> id="post_article"><a href="/admin/content/posts"> 
							<i class="menu-icon fa fa-caret-right"></i> 写文章 </a> <b class="arrow"></b></li>

						<li class="">
							<a href="/admin/contentType/"> 
								<i class="menu-icon fa fa-caret-right"></i> 分类目录 
							</a>
							 <b class="arrow"></b>
						</li>
						
						<li class="">
							<a href="/admin/column/"> 
								<i class="menu-icon fa fa-caret-right"></i> 栏目管理
							</a>
							 <b class="arrow"></b>
						</li>		
					</ul>
				</li>
			</ul>
		</li>

		<li <?if(current=='friendlink' || current=='friendlink_add'){?>class="active open hsub"<?}?> id="friendlink">
			<a href="#" class="dropdown-toggle">
				<i class="menu-icon fa fa-file-o"></i><span class="menu-text">友情链接</span>
				<b class="arrow fa fa-angle-down"></b>
			</a>	
			<b class="arrow"></b>
			<ul class="submenu">
				<li <?if(current=='friendlink'){?>class="active"<?}?>>
					<a href="/admin/friendlink"><i class="menu-icon fa fa-caret-right"></i> 所有友链</a>
				</li>
				<li <?if(current=='friendlink_add'){?>class="active"<?}?>>
					<a href="/admin/friendlink/add"><i class="menu-icon fa fa-caret-right"></i> 添加</a>
				</li>
			</ul>
		</li>
	</ul>

	<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
		<i class="ace-icon fa fa-angle-double-left"
			data-icon1="ace-icon fa fa-angle-double-left"
			data-icon2="ace-icon fa fa-angle-double-right"></i>
	</div>

	<script type="text/javascript">
		try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
	</script>
</div>
